#ifndef WEBCHANNEL_H
#define WEBCHANNEL_H

#include <QObject>
#include <QDebug>
#include <QtSql>

class webChannel : public QObject
{
    Q_OBJECT
public:
    explicit webChannel(QObject *parent = 0);
    void setSendText(const QString &text);

signals:
    void sendText(const QString &text);
    void loginFinished();
public slots:
    void receiveText(const QString &r_text);

private:
    QString s_text;
    QString recentUsr;
    QString recentPsd;
private:
    void validate(const QString usrname, const QString psd = "null");

};

#endif // WEBCHANNEL_H
